#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{

	int a = 0;
	int b = 0;
	int c = 0;
	int d = 0;
	int e = 0;
	int f = 0;
	int g = 0;
	int h = 0;
	int i = 0;
	int j = 0;
	scanf("%d %d %d %d %d %d %d %d %d %d", &a, &b, &c, &d, &e, &f, &g, &h, &i, &j);
	int arr[10] = { a,b,c,d,e,f,g,h,i,j };
	int max = arr[0];
	for (int x = 1; x <= 10; x++)
	{
		if (max < arr[x])
		{
			max = arr[x];
		}

	}
	printf("%d", max);
	return 0;
}

